package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RepairMapper;
import com.ruoyi.system.domain.Repair;
import com.ruoyi.system.service.IRepairService;

/**
 * 设备报修日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-07
 */
@Service
public class RepairServiceImpl implements IRepairService 
{
    @Autowired
    private RepairMapper repairMapper;

    /**
     * 查询设备报修日志
     * 
     * @param repairId 设备报修日志主键
     * @return 设备报修日志
     */
    @Override
    public Repair selectRepairByRepairId(Long repairId)
    {
        return repairMapper.selectRepairByRepairId(repairId);
    }

    /**
     * 查询设备报修日志列表
     * 
     * @param repair 设备报修日志
     * @return 设备报修日志
     */
    @Override
    public List<Repair> selectRepairList(Repair repair)
    {
        return repairMapper.selectRepairList(repair);
    }

    /**
     * 新增设备报修日志
     * 
     * @param repair 设备报修日志
     * @return 结果
     */
    @Override
    public int insertRepair(Repair repair)
    {
        return repairMapper.insertRepair(repair);
    }

    /**
     * 修改设备报修日志
     * 
     * @param repair 设备报修日志
     * @return 结果
     */
    @Override
    public int updateRepair(Repair repair)
    {
        return repairMapper.updateRepair(repair);
    }

    /**
     * 批量删除设备报修日志
     * 
     * @param repairIds 需要删除的设备报修日志主键
     * @return 结果
     */
    @Override
    public int deleteRepairByRepairIds(Long[] repairIds)
    {
        return repairMapper.deleteRepairByRepairIds(repairIds);
    }

    /**
     * 删除设备报修日志信息
     * 
     * @param repairId 设备报修日志主键
     * @return 结果
     */
    @Override
    public int deleteRepairByRepairId(Long repairId)
    {
        return repairMapper.deleteRepairByRepairId(repairId);
    }
}
